package com.pancm.datacollector.processor;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 处理器配置属性类
 */
@Component
@ConfigurationProperties(prefix = "processor")
public class ProcessorProperties {
    
    private Thread thread = new Thread();
    
    public static class Thread {
        private int count = 3;
        private Shutdown shutdown = new Shutdown();
        
        public static class Shutdown {
            private long timeout = 5000;
            
            public long getTimeout() {
                return timeout;
            }
            
            public void setTimeout(long timeout) {
                this.timeout = timeout;
            }
        }
        
        public int getCount() {
            return count;
        }
        
        public void setCount(int count) {
            this.count = count;
        }
        
        public Shutdown getShutdown() {
            return shutdown;
        }
        
        public void setShutdown(Shutdown shutdown) {
            this.shutdown = shutdown;
        }
    }
    
    public Thread getThread() {
        return thread;
    }
    
    public void setThread(Thread thread) {
        this.thread = thread;
    }
} 